# -*- encoding: utf-8 -*-
# 定义一个外部函数
def func_out(num1):

    # 定义一个内部函数
    def func_inner(num2):
        num1 = 10
        result = num1 + num2
        print("结果是：", result)

    print(num1)
    print(func_inner(1))
    print(num1)

    return func_inner


f = func_out(1)
f(2)
